//
//  MainSearchViewController.h
//  MINFOBBS
//
//  Created by juvid on 13-11-18.
//  Copyright (c) 2013年 minfo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ScreenAccess.h"
#import "Common.h"
#import "MBProgressHUD.h"
#import <MessageUI/MFMessageComposeViewController.h>
#import "iflyMSC/IFlyRecognizerViewDelegate.h"
#import "iflyMSC/IFlyRecognizerView.h"
#define APPID       @"52831cd4"
#define ENGINE_URL @"http://dev.voicecloud.cn:1028/index.htm"
typedef enum {
    MenuSearchStateClosed,
    MenuSearchStateOpen // the menu is closed
    // the left-hand menu is open
     // the right-hand menu is open
} MenuSearchState;
@interface MainSearchViewController : UIViewController<MFMessageComposeViewControllerDelegate,UIAlertViewDelegate,UITableViewDataSource,UITableViewDelegate,UITextViewDelegate,UIGestureRecognizerDelegate,IFlyRecognizerViewDelegate,UIWebViewDelegate,MBProgressHUDDelegate>{
    MBProgressHUD *HUD;
    IFlyRecognizerView     *_iFlyRecognizerView;
    NSString      *_ent;
    NSString      *_grammarID;
    ASIHTTPRequest  *tRequest;
//    NSMutableArray *arrReturn;
    NSMutableArray *arrCellContent,*arrCellHight,*arrCurrentRow;
//    UIWebView *webContent;
    int pageStart,pageLimit;
    NSIndexPath *longIndexPath;
    NSMutableArray *arrHistory;

}
@property (strong, nonatomic) IBOutlet UITableView *tabel;
- (IBAction)PressIFly:(id)sender;
- (IBAction)PressSend:(id)sender;
@property NSInteger isUrl;
@property (strong, nonatomic) NSString *strSearch;
@property (strong, nonatomic) IBOutlet UITextView *txtContent;
@property (strong, nonatomic) IBOutlet UIView *vieMessage;
@property (strong, nonatomic) IBOutlet UITableView *tabelDown;
@property (strong, nonatomic) IBOutlet UIImageView *imgText;
@property (strong, nonatomic) IBOutlet UIImageView *imgDown;
@property (strong, nonatomic) IBOutlet UIView *vieDown;
@property (nonatomic, assign) MenuSearchState menuState;
-(void)GetDatas:(NSString *)query;
-(void)WebUrl;
@end
